#ifndef HTTPREQUEST_H
#define HTTPREQUEST_H
#include "ServerStruct.h"

Request *create_request();
void     reset_request(Request *request);
void     free_request(Request *request);

void parse_request(EventLoop *el, Client *client);
int  do_request(EventLoop *el, Client *client);

int parse_http_request_line(EventLoop *el, Client *client);
int parse_http_request_header(EventLoop *el, Client *client);
int parse_http_request_body(EventLoop *el, Client *client);

#endif // HTTPREQUEST_H
